import React, { Suspense } from 'react';
import { BlankPage } from '@shell-ui/components';

export const lazyPage = (importPage) => {
  const LazyComponent = React.lazy(importPage);

  return props => (
    <Suspense fallback={<BlankPage code={301} loading />}>
      <LazyComponent {...props} />
    </Suspense>
  );
};

export const lazyLoad = () => {};
